#ifndef MYSERVER_H
#define MYSERVER_H
#include "server.h"
#include "letter.h"
#include <time.h>
#include <cstdlib>
#include <cstdio>
class myserver:server
{
public:
    myserver();
    ~myserver();
    void myserverstart();
protected:
    letter let[50];
    int val;//giai thuong
    int step;
    int *l;//luu bao thu client
	int *allanswer;
    int id,stt;
    void myservermakevaluegame();
    void myserverprocessgame();
    void myservergetparameters();
    int myservercheckresult(int id,int anstrue);
    int myservercheckid(int idd);
    void myserverprocessfinish();
    void myserverprintletter();
    void myserverintro();
	int myservercountelement(int *arr,int size);
	void myserversendstep();
	int myservergetletterid(int st);
	int myservermakequestion();
	void myserversendclientresult(int leterid,int answertrue);
	void myservercalculatelettervalue();
	void myserveraskexityesorno();
	void myserverbuy();
	void myserverupdateletter(int choo);
};

#endif // MYSERVER_H
